package cn.wolfcode.wolf2w.domain;


import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;


/**
 * 景点列表
 */
@Setter
@Getter
@Document("spotDetail")
public class SpotDetail extends BaseDomain {
    //字段
    private String name;
    private String ename;
    private List<String> images=new ArrayList<>();
    private Integer countImage;
    //概况
    private String overview;
    private String telephone;
    private String url;
    private String time;
    //交通
    private String traffic;
    //门票
    private String ticket;
    //开发时间
    private String openTime;



    //特殊的,不用保存到数据库的字段
    //关联的详情对象
    @Transient  //添加时, 忽略该字段, 不要讲这个字段添加到mongodb数据集合中(表)
    private Spot spot;

}
